/**
 * Created with JetBrains PhpStorm.
 * User: shaoshuai
 * Date: 12-7-16
 */
FlyFight.view.RequestList = function () {
    var that = this;
    this.el = jQuery('#request-info');
    this.el.delegate('.accept', 'click', this.accept);
};
FlyFight.view.RequestList.prototype.accept = function () {
    var username = jQuery(this).siblings('.username').html();
    jQuery.ajax({
        url: 'server/fight-accept.php',
        data: {
            accept: username
        },
        success: function () {
            jQuery('#request-info').append('<div>成功加入房间，请摆放飞机</div>')
        }
    });
};
